import request from '@/utils/request'
export default {
    //1 生成统计数据
    createStaData(date) {
        return request({
            url: '/eduSta/sta/registerNum/'+date,
            method: 'post'
          })
    },
    //2 获取统计数据
    getDataSta(searchObj) {
        return request({
            url: `/eduSta/sta/data?type=${searchObj.type}&begin=${searchObj.begin}&end=${searchObj.end}`,
            method: 'get'
          })
    }
}